package net.borlis.errors.exceptions;

/**
 * The main client exception with the translated text.
 * {@link TranslatedException}.
 *
 * @author alex@borlis.net
 */
public final class TranslatedException extends ServerException {

    private String translatedMessage;

    public TranslatedException(ServerException se, String translatedMessage) {
        super(se.getKeyMaster(), se.getCause());
        this.translatedMessage = translatedMessage;
    }

    public String getTranslatedMessage() {
        return translatedMessage;
    }

}
